package apiday01String;
/**标准java beans写法
 * 1.成员属于私有化
 * 2.有get/set方法获取或设置属性
 * 3.创建无参构造
 *
 *
 * */
public class dot {
    private int x;
    private int y;

    public dot() {

    }

    public dot(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
